package com.diandian.backend.product.param;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class ProductOfflineInfoDeleteByProductCodeParam implements Serializable {

	private String code;
	private String belong;

	public void deleteByProductCode() {
		if (this.code == null || "".equals(this.code)) {
			throw new DefaultException("商品编码不能为空");
		}
		if (this.belong == null || "".equals(this.belong)) {
			throw new DefaultException("归属标识不能为空");
		}
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}
}
